#include "Director.h"
#include "Builder.h"

#include <iostream>
using namespace std;

Director::Director(Builder* builder)
{
    cout << "Director()" << endl;
    _builder = builder;
}

Director::~Director()
{
    cout << "~Director()" << endl;
    delete _builder;
    _builder = nullptr;
}

void Director::Construct()
{
    _builder->BuilderPartA("user-defined");
    _builder->BuilderPartB("user-defined");
    _builder->BuilderPartC("user-defined");
}